home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000134_icon-group-sender _Wed Jun 11 16:17:05 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Received: from kingfisher.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Wed, 11 Jun 1997 10:42:20 MST
  2. Received: by kingfisher.CS.Arizona.EDU; (5.65v3.2/1.1.8.2/08Nov94-0446PM)
  3.     id AA08879; Wed, 11 Jun 1997 10:42:19 -0700
  4. To: icon-group@cs.arizona.edu
  5. Date: 11 Jun 1997 16:17:05 GMT
  6. From: espie@felouque.ens.fr (Marc Espie)
  7. Message-Id: <5nmj21$qj8$1@nef.ens.fr>
  8. Organization: Ecole Normale Superieure, Paris
  9. Sender: icon-group-request@cs.arizona.edu
  10. References: <Stuart.Robinson-1006972230400001@asianstmg-221.anu.edu.au>
  11. Subject: Re: searching with variables
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: RO
  14. Content-Length: 1368
  15.  
  16. In article <Stuart.Robinson-1006972230400001@asianstmg-221.anu.edu.au>,
  17. Stuart Robinson <Stuart.Robinson@anu.edu.au> wrote:
  18.  
  19. [searching for Vl, V being a vowel]
  20. >which are really just Vl (where V stands for a vowel).  Could you simply
  21. >define a character set for vowels (V := 'aeiou') and then refer to that
  22. >character set in the find() function?  If so, what would it look like?  I
  23. >tried something like the following and it didn't work.
  24.  
  25. >find( V || "l")
  26.  
  27. You just forgot ONE character:
  28. find( !V || "l")
  29.  
  30. Note that this won't be overtly fast, though, especially since find 
  31. algorithm is rather dull.
  32.  
  33. Or you can use:
  34. upto(V) = upto('l') - 1
  35. (which is another waste.)
  36.  
  37. or (better):
  38. upto('l', &subject, i <- upto(V), i+1) - 1
  39.  
  40. or even:
  41. tab(upto('l')) & move(-1) & any(V)-1
  42. which moves the matching position, though.
  43.  
  44. This kind of pattern matching is difficult to optimize, anyhow. It 
  45. all depends too much on the frequency of the characters in presence...
  46.  
  47. In general, icon pattern matching is not too great at stupid regular 
  48. expression emulation.  They're much better at building intricate mechanisms 
  49. that wouldn't work with regular expression.
  50. -- 
  51. [nosave]<http://www.eleves.ens.fr:8080/home/espie/index.html>
  52. microsoft network is EXPLICITLY forbidden to redistribute this message.
  53. `Seiza no matataki kazoe, uranau koi no yuku e.'
  54.     Marc Espie (Marc.Espie@ens.fr)
  55.